home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / INC.PAK / BWCC.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  5KB  |  198 lines

  1. // Borland Windows Custom Controls 
  2. // (C) Copyright 1991-1993 by Borland International
  3.  
  4. //
  5. // BWCC.H
  6. //
  7.  
  8. // Purpose:    Borland Windows Custom Controls  (BWCC)
  9.  
  10.  
  11. #if !defined(__BWCC_H)
  12. #define __BWCC_H
  13.  
  14. #ifndef RC_INVOKED
  15. #pragma warn -nak   /* Ignore non-ansi keywords */
  16. #endif
  17.  
  18. #if !defined(WORKSHOP_INVOKED)
  19.  
  20. #if !defined(__WINDOWS_H)
  21. #include <windows.h>
  22.  
  23. #endif
  24.  
  25. #endif
  26.  
  27. #define BWCCVERSION 0x0200   // version 2.00
  28.  
  29. // from version 1.02 onward BWCCGetversion returns a DWORD
  30. // The low-order word contains the version number
  31. // and the high-order word contains the locale
  32.  
  33. #define BWCC_LOCALE_US     1
  34. #define BWCC_LOCALE_JAPAN  2
  35.  
  36.  
  37. #define BORDLGPROP  "FB"      // Borland dialog window uses
  38.                               // this property for instance data
  39.                               // users should not use a property
  40.                               // with this name!
  41.  
  42. #if  !defined( IDHELP)
  43.  
  44. #define IDHELP    998         // Id of help button
  45.  
  46. #endif
  47.  
  48. #define BORDLGCLASS   "BorDlg"      // Our Custom Dialog class
  49. #define BORGRAYCLASS  "BorDlg_Gray" // Our Custom Dialog class - gray background
  50. #define BUTTON_CLASS  "BorBtn"    // Our Bitmap Buttons
  51. #define RADIO_CLASS   "BorRadio"  // Our Radio Buttons
  52. #define CHECK_CLASS   "BorCheck"  // Our Check Boxes
  53. #define STATIC_CLASS  "BorStatic" // Our statics
  54. #define SHADE_CLASS   "BorShade"  // Our Group Boxes and Dividers
  55.  
  56. #if !defined(EXPORT)
  57. #define EXPORT _export
  58. #endif
  59.  
  60. // The class names for Win32 are appended with "32" to distinguish
  61. // them from the Windows-16 classes in case we are running in Win32s
  62.  
  63. #if !defined(__FLAT__) && !defined(WIN32)
  64.  
  65. #define BWCCAPI FAR EXPORT PASCAL
  66.  
  67.  
  68. #else
  69.  
  70. #define BWCCAPI APIENTRY EXPORT
  71.  
  72. #endif
  73.  
  74. // button style definitions:
  75.  
  76. // the Borland buttons use Windows button styles for button
  77. // type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
  78.  
  79. // styles
  80.  
  81. #define BBS_BITMAP       0x8000L  // this is a bitmap static
  82. #define BBS_PARENTNOTIFY 0x2000L  // Notify parent of TAB keys and focus
  83. #define BBS_OWNERDRAW    0x1000L  // let parent paint via WM_DRAWITEM
  84.  
  85. // messages
  86.  
  87. #define BBM_SETBITS       ( BM_SETSTYLE + 10)
  88.  
  89. // notifications
  90.  
  91. #define BBN_SETFOCUS      ( BN_DOUBLECLICKED + 10)
  92. #define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
  93. #define BBN_GOTATAB       ( BN_DOUBLECLICKED + 12)
  94. #define BBN_GOTABTAB      ( BN_DOUBLECLICKED + 13)
  95. #define BBN_MOUSEENTER    ( BN_DOUBLECLICKED + 14)
  96. #define BBN_MOUSELEAVE    ( BN_DOUBLECLICKED + 14)
  97.  
  98.  
  99. // The following is the name of the window message passed to
  100. // RegisterWindowMessage for CtlColor processing for group box shades:
  101. #define BWCC_CtlColor_Shade "BWCC_CtlColor_Shade"
  102.  
  103. #define BSS_GROUP     1L  // recessed group box
  104. #define BSS_HDIP      2L  // horizontal border
  105. #define BSS_VDIP      3L  // vertical border
  106. #define BSS_HBUMP     4L  // horizontal speed bump
  107. #define BSS_VBUMP     5L  // vertical speed bump
  108. #define BSS_RGROUP    6L  // raised group box
  109.  
  110. #define BSS_CAPTION   0x8000L // Set off the caption
  111. #define BSS_CTLCOLOR  0x4000L // Send WM_CTLCOLOR messages to parent of control
  112. #define BSS_NOPREFIX  0x2000L // & in caption does not underline following letter
  113. #define BSS_LEFT      0x0000L // Caption is left-justified
  114. #define BSS_CENTER    0x0100L // Caption is centered
  115. #define BSS_RIGHT     0x0200L // Caption is right-justified
  116. #define BSS_ALIGNMASK 0x0300L
  117.  
  118.  
  119. #if defined( __cplusplus )
  120. extern "C" {
  121. #endif  /* __cplusplus */
  122.  
  123. extern HGLOBAL BWCCAPI SpecialLoadDialog
  124. (
  125.  
  126.   HINSTANCE   hResMod,
  127.   LPCSTR      lpResName,
  128.   DLGPROC     fpDlgProc
  129. );
  130.  
  131. extern HGLOBAL BWCCAPI MangleDialog
  132. (
  133.   HGLOBAL     hDlg,
  134.   HINSTANCE   hResources,
  135.   DLGPROC     fpDialogProc
  136. );
  137.  
  138. extern LRESULT BWCCAPI BWCCDefDlgProc
  139. (
  140.   HWND        hWnd,
  141.   UINT        message,
  142.   WPARAM      wParam,
  143.   LPARAM      lParam
  144. );
  145. extern LRESULT BWCCAPI BWCCDefGrayDlgProc
  146. (
  147.   HWND        hWnd,
  148.   UINT        message,
  149.   WPARAM      wParam,
  150.   LPARAM      lParam
  151. );
  152.  
  153.  
  154. extern LRESULT BWCCAPI BWCCDefWindowProc
  155. (
  156.   HWND        hWnd,
  157.   UINT        message,
  158.   WPARAM      wParam,
  159.   LPARAM      lParam
  160. );
  161.  
  162. extern LRESULT BWCCAPI BWCCDefMDIChildProc
  163. (
  164.   HWND        hWnd,
  165.   UINT        message,
  166.   WPARAM      wParam,
  167.   LPARAM      lParam
  168. );
  169.  
  170. extern int BWCCAPI BWCCMessageBox
  171. (
  172.   HWND        hWndParent,
  173.   LPCSTR      lpText,
  174.   LPCSTR      lpCaption,
  175.   UINT        wType
  176. );
  177.  
  178.  
  179. extern HBRUSH BWCCAPI BWCCGetPattern( void );
  180.  
  181. extern DWORD BWCCAPI BWCCGetVersion( void);
  182.  
  183. extern BOOL BWCCAPI BWCCIntlInit (UINT language);
  184.  
  185. extern BOOL BWCCAPI BWCCIntlTerm ( VOID );
  186.  
  187. extern BOOL BWCCAPI BWCCRegister(HINSTANCE hInsta);
  188.  
  189. #if defined( __cplusplus )
  190. }
  191. #endif  /* __cplusplus */
  192.  
  193. #ifndef RC_INVOKED
  194. #pragma warn .nak   /* Ignore non-ansi keywords */
  195. #endif
  196.  
  197. #endif  /* __BWCC_H */
  198.